package com.itheima.method.method2;

public class Demo3Method {
    public static void main(String[] args) {
    print(30,10);
    }

    public static void print(int n,int m) {
        System.out.println(n + "到" + m +"之间的奇数为:");
       for(int i = 10;i <= 30; i++){
           if(i % 2 == 1){
               System.out.println(i);
           }
       }
    }
}
